Ext.ns("Ext.wei");

// 支持iframe
Ext.wei.IFramePanel = Ext.extend(Ext.Panel, {
	
	initComponent : function(){
		this.bodyCfg = {
			tag: "iframe",
			width: "100%",
			height: "100%",
			frameborder: "0",
			scrolling: "auto"
		};
		if(this.url!==undefined){
			this.bodyCfg.src = this.url;
		}
		Ext.wei.IFramePanel.superclass.initComponent.call(this);
	},

	setUrl: function(url){
		if(this.rendered){
			this.body.dom.src = url;
		}else{
			this.url = url;
		}
	}
});